import { defineStore } from 'pinia'
import { ref } from 'vue'
import { artGetChannelsService } from '@/api/article.js'

export const useArctileStore = defineStore('big-article', () => {
  const channelList = ref([])
  const getChannelList = async () => {
    const { data } = await artGetChannelsService()
    channelList.value = data
  }

  return {
    channelList,
    getChannelList
  }
})
